//
//  ZPZNetRequest+FundDetail.m
//  项目2网络封装
//
//  Created by rimi on 16/7/23.
//  Copyright © 2016年 周伦. All rights reserved.
//

#import "ZPZNetRequest+FundDetail.h"
#import "LStringUtils.h"



@implementation ZPZNetRequest (FundDetail)
+(void)getFundDetailid:(NSString *)Id
             comletion:(ZLReqComletion )comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getFundDetail" requestType:ZLApRequestPost Comletion:comletion];
}

+(void)getFundListPageNum:(NSString *)pageNum pageSize:(NSString *)pageSize userId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:pageNum]) {
        [numDic setObject:pageNum forKey:@"pageNum"];
    }
    if (![LStringUtils isTextEmpty:pageSize]) {
        [numDic setObject:pageSize forKey:@"pageSize"];
    }
    if (![LStringUtils isTextEmpty:userId]) {
        [numDic setObject:userId forKey:@"userId"];
    }
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appFinancial/getFundList" requestType:ZLApRequestPost Comletion:comletion];
}
@end
